package IMIC.NGUYENVANTINH.OOP.LEVEL2.EX4;

public class Views {
	public static void main(String[] args) {
		// Khoi tao doi tuong Rectangle voi constructor default.
		Rectangle objRec = new Rectangle(4,40);
		// Khoi tao doi tuong controllers de uy quyen thuc hien tinh toan.
		Controllers ctrl = new Controllers();
		System.out.println("Area of Rectangle: " + ctrl.AreaRec(objRec));
		System.out.println("Perimeter of Rectangle:" + ctrl.PerimeterRec(objRec));
		
		//// Khoi tao doi tuong Rectangle voi constructor default.
		Rectangle objRec1 = new Rectangle(3.5,35.9);
		// Khoi tao doi tuong controllers de uy quyen thuc hien tinh toan.
		
		System.out.println("Area of Rectangle: " + ctrl.AreaRec(objRec1));
		System.out.println("Perimeter of Rectangle:" + ctrl.PerimeterRec(objRec1));
	}

}
